import iViewTheme from 'iview-layout-themes'
const axios = iViewTheme.util.apiRequest

export const demo1 = (abc) => {
  return axios.request({
    url: '/Api/Api/tt',
    data: { id: abc },
    type: 'post',
    php: true
  })
}
export const demo2 = (abc) => {
  return axios.request({
    url: '/Api/Api/tt',
    data: { id: abc },
    type: 'post',
    php: true,
    await: true
  })
}

export const mock = (abc) => {
  return axios.request({
    url: '/wl/demo',
    data: { id: abc },
    type: 'post',
    php: true
  })
}
// 查询企业信息
export const getCompanyMsgList = (data) => {
  return axios.request({
    url: '/api/as/ggc/extractCompany/getCompanyMsgList',
    data: data,
    type: 'post'
  })
}
// 创建公司
export const insertCompanyInfo = (data) => {
  return axios.request({
    url: '/api/as/ggc/extractCompany/insertCompanyInfo',
    data: data,
    type: 'post'
  })
}
// 根据id查询公司信息
export const getCompanyById = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/getCompanyById',
    data: data,
    type: 'post'
  })
}
// 查询咨询事项信息
export const getConsultProjectCompanyList = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/getConsultProjectCompanyList',
    data: data,
    type: 'post'
  })
}
// 查询验收事项信息
export const getAcceptanceProjectCompanyList = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/getAcceptanceProjectCompanyList',
    data: data,
    type: 'post'
  })
}
// 查询评估事项信息
export const getAssessmentProjectCompanyList = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/getAssessmentProjectCompanyList',
    data: data,
    type: 'post'
  })
}
// 根据id查询事项企业信息
export const getProjectCompanyById = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/getProjectCompanyById',
    data: data,
    type: 'post'
  })
}
// 咨询类上传材料
export const createConsultFile = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/createConsultFile',
    data: data,
    type: 'post'
  })
}
// 查询企业事项信息
export const getProjectCompanyList = (data) => {
  return axios.request({
    url: '/api/us/ggc/extractCompany/getProjectCompanyList',
    data: data,
    type: 'post'
  })
}
// 项目通过
export const updateStateAdopt = (data) => {
  return axios.request({
    url: '/api/uc/ggc/GovgeneralExtractCompanyService/updateStateAdopt',
    data: data,
    type: 'post'
  })
}
// 项目不通过
export const updateStateUnadopt = (data) => {
  return axios.request({
    url: '/api/uc/ggc/GovgeneralExtractCompanyService/updateStateUnadopt',
    data: data,
    type: 'post'
  })
}
// 上传图片
export const upBase64 = (base64) => {
  return axios.request({
    url: 'https://txy.juyouhx.com/Api/Api/upBase64ToOss',
    data: { base64: base64 },
    method: 'post',
    php: true
  })
}
// 根据事项状态查询企业信息
export const getCompany = (data) => {
  return axios.request({
    url: '/api/uc/ggc/GovgeneralExtractCompanyService/getCompany',
    data: data,
    type: 'post'
  })
}
// 上传文件
export const insertProjectFile = (data) => {
  return axios.request({
    url: '/api/as/ggc/extractCompany/insertProjectFile',
    data: data,
    type: 'post'
  })
}
// 查询认证材料信息
export const selectProjectValue = (data) => {
  return axios.request({
    url: '/api/as/ggc/extractCompany/selectProjectValue',
    data: data,
    type: 'post'
  })
}
